package com.itheima.demo;

import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.factory.BeanFactory;

public class UserDaoTest {
    public static void main(String[] args)throws Exception {
        UserDao userDao=new UserDaoImpl();
        UserDao userDao1 = (UserDao) BeanFactory.getBean("userDao");
        System.out.println(userDao1);
    }
}
